#ifndef __GAF_SYSINCDEF_WIN32_H__
#define __GAF_SYSINCDEF_WIN32_H__

// 忽略安全函数警告
#pragma WARNING(disable:4996)

// 文件目录系统操作
#include <io.h>
#undef  SYS_FS_KIND_DIR
#define SYS_FS_KIND_DIR				_A_SUBDIR
#undef  SYS_FS_KIND_FILE
#define SYS_FS_KIND_FILE			_A_ARCH
#undef  SYS_FS_ERROR
#define SYS_FS_ERROR				-1l

#undef  SYS_FS_DIR
#define SYS_FS_DIR				long
#undef  SYS_FS_DATA
#define SYS_FS_DATA				_finddata_t
#undef  SYS_FS_OPEN
#define SYS_FS_OPEN(_szPath, _DIR, _DATA)	(_DIR = _findfirst(_szPath, &_DATA))
#undef  SYS_FS_READ
#define SYS_FS_READ(_DIR, _DATA)		_findnext(_DIR, &_DATA)
#undef  SYS_FS_CLOSE
#define SYS_FS_CLOSE(_DIR)			_findclose(_DIR)

#undef  SYS_FS_DATA_NAME
#define SYS_FS_DATA_NAME(_DATA, _strName)	_DATA.name
#undef  SYS_FS_DATA_SIZE
#define SYS_FS_DATA_SIZE(_DATA, _nSize)		_DATA.size
#undef  SYS_FS_DATA_ISKIND
#define SYS_FS_DATA_ISKIND(_DATE, _KIND)	(((_DATE.attrib & _KIND) == _KIND) ? true : false)

#endif
